package com.ruoyi.project.jiaqin.quoted.mapper;

import com.ruoyi.project.jiaqin.quoted.domain.QuotedPrice;

import java.util.List;

/**
 * 采购报价Mapper接口
 *
 * @author admin
 * @date 2020-12-25
 */
public interface QuotedPriceMapper
{
    /**
     * 查询采购报价
     *
     * @param id 采购报价ID
     * @return 采购报价
     */
    public QuotedPrice selectQuotedPriceById(String id);

    /**
     * 查询采购报价列表
     *
     * @param quotedPrice 采购报价
     * @return 采购报价集合
     */
    public List<QuotedPrice> selectQuotedPriceList(QuotedPrice quotedPrice);
    /**
     * 查询采购报价列表
     *
     * @param quotedPrice 采购报价
     * @return 采购报价集合
     */
    public List<QuotedPrice>  selectQuotedPriceListByWantToBuyId(String wantToBuyId);
    public Integer selectQuotedPriceCountByWantToBuyId(String wantToById);
    /**
     * 新增采购报价
     *
     * @param quotedPrice 采购报价
     * @return 结果
     */
    public int insertQuotedPrice(QuotedPrice quotedPrice);

    /**
     * 修改采购报价
     *
     * @param quotedPrice 采购报价
     * @return 结果
     */
    public int updateQuotedPrice(QuotedPrice quotedPrice);

    /**
     * 删除采购报价
     *
     * @param id 采购报价ID
     * @return 结果
     */
    public int deleteQuotedPriceById(String id);

    /**
     * 批量删除采购报价
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteQuotedPriceByIds(String[] ids);

    public QuotedPrice selectQuotedPriceByWantToBuyIdAndMemberId(String memberId, String wantToBuyId);

    public QuotedPrice selectQuotedPriceByWantToBuyId(String wantToBuyId, String memberId);
}
